namespace Cos.Core.NHibernate
{
    public class FormElementCultureDataModel
    {
        public virtual string CultureCode { get; set; }

        public virtual int FormElementId { get; set; }

        public virtual int ID { get; set; }

        public virtual string NameLive { get; set; }

        public virtual string NamePreview { get; set; }

        public virtual string Status { get; set; }

        public virtual string TextCulture1 { get; set; }

        public virtual string TextCulture1Live { get; set; }

        public virtual string TextCulture2 { get; set; }

        public virtual string TextCulture2Live { get; set; }

        public virtual string TextCulture3 { get; set; }

        public virtual string TextCulture3Live { get; set; }

        public virtual string ToolTipLive { get; set; }

        public virtual string ToolTipPreview { get; set; }

        public virtual bool VisibleLive { get; set; }

        public virtual bool VisiblePreview { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as FormElementCultureDataModel;

            return model != null && this.ID == model.ID;
        }

        public override int GetHashCode()
        {
            return this.ID.GetHashCode();
        }
    }
}